package com.zwh.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MvcConfig implements WebMvcConfigurer {

    public void addViewControllers(ViewControllerRegistry registry){

        registry.addViewController("homef").setViewName("homef");
        registry.addViewController("homeb").setViewName("homeb");
        registry.addViewController("information").setViewName("information");
        registry.addViewController("keep").setViewName("keep");
        registry.addViewController("ai").setViewName("ai");
    }

}
